package com.zte.market.service.otherService.otherImpl;

import com.zte.market.mapper.otherMapper.WarehouseMapper;
import com.zte.market.pojo.otherPojo.Warehouse;
import com.zte.market.service.otherService.WarehouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Auther: 许月
 * @Date: 2022/10/06/20:39
 */
@Service
public class WarehouseServiceImpl implements WarehouseService {

    @Autowired
    private WarehouseMapper warehouseMapper;

    /**
     * 仓库的id获取仓库信息
     * @param warehouseId
     * @return
     */
    @Override
    public Warehouse getByWarehouseId(Integer warehouseId) {
        Warehouse warehouse = null;
        if(warehouseId != null && !"".equals(warehouseId)) {
            warehouse = warehouseMapper.queryByWarehouseId(warehouseId);
        }
        return warehouse;
    }
}
